package milu.models;

import com.google.appengine.api.datastore.Key;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Blob;

import com.google.appengine.api.users.*;


@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable="true")
public class MyImage {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
    @Persistent
    private String name;
    @Persistent
	Blob imageBin;

    public MyImage(String name, Blob imageBin) {
		this.name = name;
		this.imageBin = imageBin;
    }
    public Key getKey() {
        return key;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
	public Blob getImageBin() {
		return imageBin;
	}
    public void setImageBin(Blob imageBin) {
        this.imageBin = imageBin;
    }
}
